<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("")}">
    <div class="tab-content">
      <div class="form-group">
        <label class="col-sm-2 control-label ">上级:</label>
        <div class="col-sm-10">
          <select name="parentid" class="input-large">
            <option value="0">作为一级菜单</option>
            
            
                    {$select_categorys}
             
          
          </select>
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">名称:</label>
        <div class="col-sm-10">
          <input type="text" class="input-xlarge" name="title" value="{$data.title}">
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">链接:</label>
        <div class="col-sm-10">
          <input type="text" class="input-xxlarge" name="name" value="{$data.name}">
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">图标:</label>
        <div class="col-sm-10">
          <input type="text" class="input" name="icon" value="{$data.icon}">
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">备注:</label>
        <div class="col-sm-10">
          <textarea name="remark" rows="5"  class="col-xs-10 col-sm-5" >{$data.remark}</textarea>
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">附加规则:</label>
        <div class="col-sm-10">
          <textarea name="condition" rows="3" class="col-xs-10 col-sm-5" >{$data.condition}</textarea>
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">菜单显示:</label>
        <div class="col-sm-10">
          <select name="display" class="normal_select">
            <option value="1" 
            <eq name="data.display" value="1">selected</eq>
            >显示
            </option>
            <option value="0" 
            <eq name="data.display" value="0">selected</eq>
            >隐藏
            </option>
          </select>
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">右侧菜单:</label>
        <div class="col-sm-10">
          <label class="radio inline"> <input type="radio"  name="right"   value="1" 
                
            <eq name="data.right" value="1"> checked="checked"</eq>
            >
            开 </label>
          <label class="radio inline"> <input type="radio"  name="right"   value="0" 
                
            <eq name="data.right" value="0">checked="checked" </eq>
            >
            关 </label>
        </div>
      </div>
      <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label ">状态:</label>
        <div class="col-sm-10">
          <label class="radio inline"> <input type="radio"  name="status"   value="1" 
                
            <eq name="data.status" value="1"> checked="checked"</eq>
            >
            开 </label>
          <label class="radio inline"> <input type="radio"  name="status"   value="0" 
                
            <eq name="data.status" value="0">checked="checked" </eq>
            >
            关 </label>
        </div>
      </div>
      <input type="hidden" name="id" value="{$data.id}" />
      <div class="form-actions">
        <button class="btn btn-info ajax-post " target-form="J_ajaxForm" type="submit"> 更新</button>
        <a class="btn btn-return" href="__URL__" >返 回</a>
      </div>
    </div>
  </form>
</block>
